package com.chuantou.yuba.api.to;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 
 * @author dl1001
 * 
 */
public class BaseNewsTypeTO implements Parcelable {
	public static final String NAME_TYPE = "type";
	public static final String TYPE_TEXT = "text";
	public static final String TYPE_IMAGE = "image";
	public static final String TYPE_COMMENT = "comment";
	public static final String TYPE_AD = "ad";
	public static final String TYPE_COMMENT_TAG = "comment_tag";
	// 资讯类型
	@SerializedName(NAME_TYPE)
	private String type;

	public BaseNewsTypeTO() {
	}

	public BaseNewsTypeTO(Parcel source) {
		this.type = source.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(type);
	}

	public static final Creator<BaseNewsTypeTO> CREATOR = new Creator<BaseNewsTypeTO>() {

		@Override
		public BaseNewsTypeTO[] newArray(int size) {
			return new BaseNewsTypeTO[size];
		}

		@Override
		public BaseNewsTypeTO createFromParcel(Parcel source) {
			return new BaseNewsTypeTO(source);
		}
	};

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
